package net.arvin.utils;

import android.content.Context;
import android.view.WindowManager;

public class Window_Service {
	
	private static WindowManager getWindowManager(Context context){
		return (WindowManager)context.getSystemService(Context.WINDOW_SERVICE);
	}
	
	@SuppressWarnings("deprecation")
	public static int getWindowWidth(Context context){
		return getWindowManager(context).getDefaultDisplay().getWidth();
	}
	
	@SuppressWarnings("deprecation")
	public static int getWindowHeight(Context context){
		return getWindowManager(context).getDefaultDisplay().getHeight();
	}
}
